-- GENERATED SPELL FOR [Bash'ir Spell-Thief] --


function spell0_22242(pUnit, Event) --@Damage Reduction: Magic,Self--
pUnit:FullCastSpellOnTarget(38860,pUnit)
pUnit:RegisterEvent('Sorts_22242', 673, 1)
end

function Sorts_22242(pUnit, Event)
local choix_sorts_22242 = math.random(0, 0)
if choix_sorts_22242 == 0 then
pUnit:RegisterEvent('spell0_22242', 1, 1)
end
end

function mob22242_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22242', math.random(1500, 3000), 1)
end

function mob22242_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22242_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22242_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22242, 1, 'mob22242_Action')
RegisterUnitEvent(22242, 2, 'mob22242_Leave')
RegisterUnitEvent(22242, 3, 'mob22242_Kill')
RegisterUnitEvent(22242, 4, 'mob22242_Die')
